package com.doraemon.common.exception;

import com.doraemon.enums.ResultEnum;

/**
 * 异常类
 * @author doraemon
 * @date 2017/10/16.
 */
public class SellException extends RuntimeException{
    private  Integer code;

    public SellException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }

    public  SellException(Integer code,String msseage) {
        super(msseage);
        this.code =code;
    }
}
